﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ThanhTu.GNC.Media.KQXS.DataAccess.DAL;
using ThanhTu.GNC.Media.KQXS.DataAccess.DO;
using System.Data;

namespace ThanhTu.GNC.Media.KQXS.DataAccess.BL
{
    public class StyleLotteryBL : IDisposable
    {
        private StyleLotteryDAL vStyleLotteryDAL = null;
        private bool disposed = false;
        public StyleLotteryBL()
        {
            if (vStyleLotteryDAL == null)
            {
                vStyleLotteryDAL = new StyleLotteryDAL();
            }
        }
        ~StyleLotteryBL() { Dispose(false); }

        #region IDisposable Members

        public void Dispose()
        {
            Dispose(true);
            GC.SuppressFinalize(this);
        }

        private void Dispose(bool disposing)
        {
            if (!disposed)
            {
                if (disposing)
                {
                    if (vStyleLotteryDAL != null)
                    {
                        vStyleLotteryDAL.Dispose();
                        vStyleLotteryDAL = null;
                    }
                }

                disposed = true;
            }
        }

        #endregion

        public int update(StyleLotteryDO vStyleLotteryDO) { return vStyleLotteryDAL.update(vStyleLotteryDO); }
        public DataTable SelectAll() { return vStyleLotteryDAL.SelectAll(); }
        public DataTable getbyPosition(string Position) { return vStyleLotteryDAL.getbyPosition(Position); }
    }
}
